package com.mz.mattress.client.service.impl;

import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.Goods;
import com.mz.mattress.client.mapper.GoodsMapper;
import com.mz.mattress.client.service.GoodsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class GoodsServiceImpl implements GoodsService {

    @Autowired
    private GoodsMapper goodsMapper;

    @Override
    public Result<List<Goods>> list() {
        List<Goods> list = goodsMapper.list();
        return Result.ok(list);
    }

}
